﻿using System;

using Microsoft.VisualStudio.TestTools.UnitTesting;

using Sustainalytics.Auth.Claims;

namespace Sustainalytics.ESGRatings.Service.Controllers.Tests
{
    using Sustainalytics.UtilsTests;

    [TestClass()]
    public class EsgControversyIndicatorControllerTests
    {




        void WebAQuery(Guid companyId,Guid esgProfileId)
        {
            var req = new System.Net.Http.HttpClient();
            var task =  req.GetAsync("http://localhost:10280/esgratingserv/api/v1/company/" + companyId.ToString() + "/esgControversyIndicator");
            task.Wait();
            var status = task.Result.StatusCode; 
        }
        void WebBQuery(Guid companyId, Guid esgProfileId)
        {
            var req = new System.Net.Http.HttpClient();
            var task = req.GetAsync("http://localhost:10280/esgratingserv/api/v1/company/" + companyId.ToString() + "/EsgHistoricalPerformanceSummary");
            task.Wait();
            var status = task.Result.StatusCode;
        }
        void WebCQuery(Guid companyId, Guid esgProfileId)
        {
            var req = new System.Net.Http.HttpClient();
            var task = req.GetAsync("http://localhost:10280/esgratingserv/api/v1/company/" + companyId.ToString() + "/EsgOverallAssessment");
            task.Wait();
            var status = task.Result.StatusCode;
        }
        void WebDQuery(Guid companyId, Guid esgProfileId)
        {
            var req = new System.Net.Http.HttpClient();
            var task = req.GetAsync("http://localhost:10280/esgratingserv/api/v1/company/" + companyId.ToString() + "/EsgOverallPerformanceSummary");
            task.Wait();
            var status = task.Result.StatusCode;
        }


        void AQuery(Guid companyId, Guid esgProfileId)
        {
            var controller = TestUtils.setupController<EsgControversyIndicatorController>(new EsgControversyIndicatorController());
            var status = controller.Get(companyId, new Guid("dce50c79-6386-453a-adf6-de7cfdf5f6c7"), AccountFeature.EsgRatingsOnlineReport);
        }
        void BQuery(Guid companyId, Guid esgProfileId)
        {
            var controller = TestUtils.setupController<EsgHistoricalPerformanceSummaryController>(new EsgHistoricalPerformanceSummaryController());
            var status = controller.Get(companyId);
        }

        void CQuery(Guid companyId, Guid esgProfileId)
        {
            var controller = TestUtils.setupController<EsgOverallAssessmentController>(new EsgOverallAssessmentController());
            var status = controller.Get(companyId);
        }

        void DQuery(Guid companyId, Guid esgProfileId)
        {
            var controller = TestUtils.setupController<EsgOverallPerformanceSummaryController>(new EsgOverallPerformanceSummaryController());
            var status = controller.Get(companyId, esgProfileId);
        }

    }
}
